<?php


class Tx_Joinformattac_ViewHelpers_AttacSubmitViewHelper extends Tx_Fluid_ViewHelpers_Form_SubmitViewHelper{
	
	
	
	/**
	 * Initialize arguments
	 *
	 * @return void
	 */
	public function initializeArguments() {
		parent::initializeArguments();
		
	//	$atts = array('object' => 'string', 'method' => 'string', 'controller' => 'string', 'action' => 'string'); 
	//	$this->a

		$this->registerArgument('object', 'string', 'object property');
		$this->registerArgument('method', 'string', 'object property');
		$this->registerArgument('controller', 'string', 'object property');
		$this->registerArgument('action', 'string', 'object property');
		
	}
	
	/*
	 * (non-PHPdoc)
	 * @param string $object
	 * @param string $method
	 * @param string $controller
	 * @param string $action
	 * $object, $method, $controller, $action
	 */
	public function render( ){
				$name = $this->getName();
				
		//$this->registerFieldNameForFormTokenGeneration($name);
		$atts = array('object' => 'string', 'method' => 'string', 'controller' => 'string', 'action' => 'string');
		$this->tag->addAttribute('type', 'submit');
		$this->tag->addAttribute('name', $name);
		$this->tag->addAttribute('value', $this->getValue());
		$this->tag->addAttributes($atts);

		return $this->tag->render();
	}
	
	
}